<?php
/* @var $this NumeroController */
/* @var $model Numero */

$this->breadcrumbs=array(
	'Numeros'=>array('index'),
	'Manage',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#numero-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'numero-grid',
	'dataProvider'=>$model->search(),
	'columns'=>array(
		'nFacturaA',
		'nFacturaB',
		'nTicket',
		'fecha_cierre',
		'nCreditoA',
		'nCreditoB',
		'nDebitoA',
		'nDebitoB',
		array(
			'class'=>'CButtonColumn',
			'header'=>'Acciones',
			'template'=>'{update}'
		),
	),
)); ?>
